package net.sky.oa.service.talkpark.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import net.sky.oa.dao.talkpark.TalCommentDao;
import net.sky.oa.model.TalComment;
import net.sky.oa.service.talkpark.TalCommentService;

import com.htsoft.core.service.impl.BaseServiceImpl;
@Service
@Transactional
public class TalCommentServiceImpl extends BaseServiceImpl<TalComment> implements TalCommentService {

	private TalCommentDao talcommentdao;
	
	@Resource
	public void setDao(TalCommentDao talcommentdao){
		super.setDao(talcommentdao);
		this.talcommentdao=talcommentdao;
	}
	
	@Transactional(readOnly=true)
	public List<TalComment> findAllTalComment() {
		
		return talcommentdao.findAllTalComment();
	}
	@Transactional(readOnly=true)
	public Map findTalCommentById(final int talblogId,final int currentPage,final int lineSize) throws Exception{
		
		return talcommentdao.findTalCommentById(talblogId, currentPage, lineSize);
	}

	public List<TalComment> findByHql(String paramString) {
		
		return null;
	}

}
